package com.hanthink.web.controller.app.finishtask;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hanthink.common.core.controller.BaseController;
import com.hanthink.common.core.page.TableDataInfo;
import com.hanthink.system.domain.finishtask.FinishTaskInfo;
import com.hanthink.system.service.finishtask.ITaskInfoService;

@RestController
@RequestMapping("/app/finishtask/taskInfo")
public class TaskInfoControll extends BaseController {

	@Autowired
	private ITaskInfoService taskService;

	// 查询任务列表
	@PostMapping("/list")
	public TableDataInfo list(@RequestBody FinishTaskInfo info) {
		startPage();
		List<FinishTaskInfo> list = taskService.selectTaskList(info);
		return getDataTable(list);
	}

	// 更新已读消息
	@PostMapping("/bar")
	public TableDataInfo bar(@RequestBody FinishTaskInfo info) {
		startPage();
		List<FinishTaskInfo> list = taskService.selectBarList(info);
		return getDataTable(list);
	}
}
